package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.beans.Admin;
import com.beans.User;


@Mapper
public interface UserMapper {
    User login(@Param("userName") String userName, @Param("password") String password);

    Admin loging(@Param("userName") String userName, @Param("password") String password);

    int register(User user);

    int addUser(User user);

    int updateUser(User user);

    int deleteUser(int id);

    User getUserById(int id);

    List<User> getAllUser();

    List<User> get(@Param("userName") String userName);
}
